package com.liugege.make.factory.abstractfactory.pizzastore.pizza;

public class TJFactory implements AbstractFactory{
    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if ("cheese".equals(orderType)){
            pizza = new TJCheesePizza();
            pizza.setName("天津奶酪披萨");
        }else if ("pepper".equals(orderType)){
            pizza = new TJPepperPizza();
            pizza.setName("天津胡椒披萨");
        }
        return pizza;
    }
}
